package com.smallcr.constant;

public enum HttpStatusEnum {
	
	SUCCESS(200,"请求已经成功处理","SC_OK"),
	
	SERVER_ERROR(500,"服务器端异常","Internal Server Error"),
	
	SERVER_FAIL(505,"自定义提示"," Custom Prompt"),
	
	BAD_REQUEST(400,"错误的请求","Bad Request"),
	
	UNAUTHORIZED(401,"未授权操作","SC_UNAUTHORIZED"),
	
	RESOURCE_NOT_FOUND(404,"服务器资源不存在","RESOURCE_NOT_FOUND"),
	
	NOT_ALLOWED(405,"方法未允许","Method Not Allowed"),
	
	BAD_GATEWAY(502,"网络连接异常","Bad Gateway");
	
	private int code;

	private String msg;

	private String description;

	public int getCode() {
		return code;
	}

	private HttpStatusEnum(int code, String msg, String description) {
		this.code = code;
		this.msg = msg;
		this.description = description;

	}

	public void setCode(int code) {
		this.code = code;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

}
